package com.granada.mapper;

import com.granada.entity.SysRolePermission;

import java.util.List;
public interface SysRolePermissionMapper {
    int deleteByPrimaryKey(Long id);
    int insert(SysRolePermission record);
    int insertSelective(SysRolePermission record);
    SysRolePermission selectByPrimaryKey(Long id);
    int updateByPrimaryKeySelective(SysRolePermission record);
    int updateByPrimaryKey(SysRolePermission record);
    int removeByRoleId(Long roleId);
    List<Long> getPermissionIdsByRoles(List<Long> roleIds);
    int batchRolePermission(List<SysRolePermission> list);
    int removeByPermissionId(Long permissionId);
    List<Long> getRoleIds(Long permissionId);
    List<Long> getPermissionIdsByRoleId(Long roleId);
}